TrackingConfig

data class TrackingConfig(val appName: String, val appNamespace: String, val appVersion: String, val appBuildNumber: String, val deviceCategory: DeviceCategory, val deviceType: String, val osFamily: String, val osVersion: String, val isMobile: Boolean? = null, val screenHeight: Int? = null, val screenWidth: Int? = null, val screenDensity: Int? = null, val fingerprint: String? = null, val manufacturer: String? = null, val carrier: String? = null, val bluetoothEnabled: Boolean? = null, val cellularEnabled: Boolean? = null, val wifiEnabled: Boolean? = null, val externalId: String? = null, val traits: TrackingTraits? = null)

Session metadata applied to the tracker when MessengerAccount.initiateTracking is called.

Required fields are non-null; optional fields are nullable. Values are applied to the underlying tracker via its setters and are sent with every subsequent app event.

Constructors

Link copied to clipboard
constructor(appName: String, appNamespace: String, appVersion: String, appBuildNumber: String, deviceCategory: DeviceCategory, deviceType: String, osFamily: String, osVersion: String, isMobile: Boolean? = null, screenHeight: Int? = null, screenWidth: Int? = null, screenDensity: Int? = null, fingerprint: String? = null, manufacturer: String? = null, carrier: String? = null, bluetoothEnabled: Boolean? = null, cellularEnabled: Boolean? = null, wifiEnabled: Boolean? = null, externalId: String? = null, traits: TrackingTraits? = null)

Properties

Link copied to clipboard

The build number of the host app.

Link copied to clipboard

The name of the host app.

Link copied to clipboard

The namespace (for example, the application ID) of the host app.

Link copied to clipboard

The version of the host app.

Link copied to clipboard

Whether Bluetooth is enabled on the device.

Link copied to clipboard

The mobile network carrier of the device.

Link copied to clipboard

Whether cellular data is enabled on the device.

Link copied to clipboard

The category of the device.

Link copied to clipboard

The type of the device.

Link copied to clipboard

The external identifier of the user, used for identity stitching.

Link copied to clipboard

The device fingerprint.

Link copied to clipboard

Whether the device is a mobile device.

Link copied to clipboard

The manufacturer of the device.

Link copied to clipboard

The operating system family of the device.

Link copied to clipboard

The operating system version of the device.

Link copied to clipboard

The screen density of the device as a scale factor, where 1 means one physical pixel per device-independent pixel.

Link copied to clipboard

The screen height of the device.

Link copied to clipboard

The screen width of the device.

Link copied to clipboard

Identity traits sent with every event.

Link copied to clipboard

Whether Wi-Fi is enabled on the device.